//
//  DMSettingCell.m
//  MCNKuaiYi
//
//  Created by 何典钊 on 2017/1/8.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMSettingCell.h"

@implementation DMSettingCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    
    _imgV = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgV];
    
    [_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.size.mas_equalTo(CGSizeMake(25, 25));
        make.left.equalTo(self.contentView).offset(10);
    }];
    
    _illName = [[UILabel alloc] init];
    [self.contentView addSubview:_illName];
    
    [_illName mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_imgV.mas_right).offset(10);
        make.centerY.equalTo(self.contentView);
    }];
}

@end
